<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">路线编码:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[route_code]" type="text" placeholder="留空自动生成">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">路线名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input class="form-control" name="row[route_name]" type="text" required>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">产品:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control selectpicker" name="row[product_id]" data-live-search="true">
                <option value="">请选择</option>
                {foreach $productList as $k=>$v}
                <option value="{$k}">{$v}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
